﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace REPORT.DTO
{
    public class DTO_SANPHAM
    {
        #region Khai bao thuoc tinh
        private int _maSanPham;
        
        private string _tenSanPham;
        
        private float _donGia;
        
        private int _soLuong;
        
        private string _donViTinh;
        
        private int _maLoaiSanPham;        

        #endregion

        #region Khai bao phuong thuc

        public int MaSanPham
        {
            get { return _maSanPham; }
            set { _maSanPham = value; }
        }
        public string TenSanPham
        {
            get { return _tenSanPham; }
            set { _tenSanPham = value; }
        }
        public float DonGia
        {
            get { return _donGia; }
            set { _donGia = value; }
        }
        public int SoLuong
        {
            get { return _soLuong; }
            set { _soLuong = value; }
        }
        public string DonViTinh
        {
            get { return _donViTinh; }
            set { _donViTinh = value; }
        }
        public int MaLoaiSanPham
        {
            get { return _maLoaiSanPham; }
            set { _maLoaiSanPham = value; }
        }
        #endregion

        #region Khai bao khoi tao
        public DTO_SANPHAM()
        { }
        public DTO_SANPHAM(int maSP, string tenSP, float donGia, int soLuong, string donViTinh, int maLoaiSanPham)
        {
            this.MaSanPham = maSP;
            this.TenSanPham = tenSP;
            this.DonGia = donGia;
            this.SoLuong = soLuong;
            this.DonViTinh = donViTinh;
            this.MaLoaiSanPham = maLoaiSanPham;
        }

        public DTO_SANPHAM(DTO_SANPHAM obj)
        {
            this.MaSanPham = obj.MaSanPham;
            this.TenSanPham = obj.TenSanPham;
            this.DonGia = obj.DonGia;
            this.SoLuong = obj.SoLuong;
            this.DonViTinh = obj.DonViTinh;
            this.MaLoaiSanPham = obj.MaLoaiSanPham;
        }
        #endregion
    }
}
